package com.farm.cbtg.domain.ex;

/**
 * 业务分类域定义
 * 
 * @author Wd
 *
 */
public enum CatalogDomain {

	TEMPLATE("template", "模板分类"),CONFIGER("configer", "参数集分类"),PROJECT("project", "项目分类");

	private String key;
	private String title;

	public static CatalogDomain getDomain(String key) {
		for (CatalogDomain node : values()) {
			if (key.equals(node.getKey())) {
				return node;
			}
		}
		return null;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	CatalogDomain(String key, String title) {
		this.key = key;
		this.title = title;
	}

}
